package com.dhsc.view.dao.impl.jyjk.zxyc;

import com.dhsc.domain.jkzx.zxjh.*;
import com.dhsc.domain.khzl.common.CommonVo;
import com.dhsc.view.dao.jyjk.zxyc.ITJjrJkDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("jjrJkdao")
public class TJjrJkDaoImpl implements ITJjrJkDao{
	
	@Autowired
	private SqlSessionTemplate viewSqlSessionTemplate;

	@Override
	public List<TJjrycVo> queryTJjryc(TJjrycVo t) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.queryTJjryc", t);
	}

	@Override
	public List<CommonVo>  selectJklx(TJjrycVo t) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectJklx", t);
	}

	@Override
	public List<CommonVo>  selectJjrYyb(TJjrycVo t) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectJjrYyb", t);
	}

	@Override
	public String selectZjlbByZjbh(KhxxVo k) {
		return viewSqlSessionTemplate.selectOne("TJjrjkMapper.selectZjlbByZjbh", k);
	}

	@Override
	public List<KhxxVo> querykhxx(KhxxVo k) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.querykhxx", k);
	}

	@Override
	public List<KhxxVo> queryzssjyurl(KhxxVo k) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.queryzssjyurl", k);
	}

	@Override
	public List<KhxxVo> selectMonitorInfo(KhxxVo k) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectMonitorInfo", k);
	}

	@Override
	public int insertzssjy(KhxxVo k) {
		return viewSqlSessionTemplate.insert("TJjrjkMapper.insertzssjy", k);
	}

	@Override
	public KhglxxVo selectAllOfCustomer(KhglxxVo k) {
		return viewSqlSessionTemplate.selectOne("TJjrjkMapper.selectAllOfCustomer", k);
	}

	@Override
	public KhglzcxxVo selectAllOfAsset(KhglzcxxVo k) {
		return viewSqlSessionTemplate.selectOne("TJjrjkMapper.selectAllOfAsset", k);
	}

	@Override
	public List<KhglzcxxVo> selectTzqgl(KhglzcxxVo k) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectTzqgl", k);
	}

	@Override
	public List<KhglzcxxVo> selectTzqglRzrq(KhglzcxxVo k) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectTzqglRzrq", k);
	}

	@Override
	public List<WtxxVo> selectAllOfTradeinfoPT(WtxxVo w) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectAllOfTradeinfoPT", w);
	}

	@Override
	public List<WtxxVo> selectAllOfTradeinfoXY(WtxxVo w) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.selectAllOfTradeinfoXY", w);
	}

	@Override
	public KhglgrxxVo selectAllOfPersonal(KhglgrxxVo k) {
		return viewSqlSessionTemplate.selectOne("TJjrjkMapper.selectAllOfPersonal", k);
	}

	@Override
	public KhgljgxxVo selectAllOfOrgans(KhgljgxxVo k) {
		return viewSqlSessionTemplate.selectOne("TJjrjkMapper.selectAllOfOrgans", k);
	}

	@Override
	public List<GlxxVo> queryGlxxInfo(GlxxVo g) {
		return viewSqlSessionTemplate.selectList("TJjrjkMapper.queryGlxxInfo", g);

	}

}
